package com.erp.erp_entitys.ShipmentPlanLog;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 * 出运计划日志表
 */
public class ShipmentPlanLog implements Serializable {
    private Integer id;

    /**
     * 操作类型
     */
    private String operationtype;

    /**
     * 操作员
     */
    private String opname;

    /**
     * 操作日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    private Date operationdate;

    /**
     * 修改内容
     */
    private String modifythecontent;

    /**
     * 出运计划外键
     */
    private Integer shipmentplanid;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOperationtype() {
        return operationtype;
    }

    public void setOperationtype(String operationtype) {
        this.operationtype = operationtype;
    }

    public String getOpname() {
        return opname;
    }

    public void setOpname(String opname) {
        this.opname = opname;
    }

    public Date getOperationdate() {
        return operationdate;
    }

    public void setOperationdate(Date operationdate) {
        this.operationdate = operationdate;
    }

    public String getModifythecontent() {
        return modifythecontent;
    }

    public void setModifythecontent(String modifythecontent) {
        this.modifythecontent = modifythecontent;
    }

    public Integer getShipmentplanid() {
        return shipmentplanid;
    }

    public void setShipmentplanid(Integer shipmentplanid) {
        this.shipmentplanid = shipmentplanid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ShipmentPlanLog other = (ShipmentPlanLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOperationtype() == null ? other.getOperationtype() == null : this.getOperationtype().equals(other.getOperationtype()))
            && (this.getOpname() == null ? other.getOpname() == null : this.getOpname().equals(other.getOpname()))
            && (this.getOperationdate() == null ? other.getOperationdate() == null : this.getOperationdate().equals(other.getOperationdate()))
            && (this.getModifythecontent() == null ? other.getModifythecontent() == null : this.getModifythecontent().equals(other.getModifythecontent()))
            && (this.getShipmentplanid() == null ? other.getShipmentplanid() == null : this.getShipmentplanid().equals(other.getShipmentplanid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOperationtype() == null) ? 0 : getOperationtype().hashCode());
        result = prime * result + ((getOpname() == null) ? 0 : getOpname().hashCode());
        result = prime * result + ((getOperationdate() == null) ? 0 : getOperationdate().hashCode());
        result = prime * result + ((getModifythecontent() == null) ? 0 : getModifythecontent().hashCode());
        result = prime * result + ((getShipmentplanid() == null) ? 0 : getShipmentplanid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", operationtype=").append(operationtype);
        sb.append(", opname=").append(opname);
        sb.append(", operationdate=").append(operationdate);
        sb.append(", modifythecontent=").append(modifythecontent);
        sb.append(", shipmentplanid=").append(shipmentplanid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}